package cn.com.api.service.impl.base;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_match;

import cn.com.api.mapper.ApiU_matchMapper;

import cn.com.api.service.ApiU_matchService;

/**
 * 
 **/
@Service
public class U_matchServiceImplBase {
	@Autowired
	private ApiU_matchMapper apiU_matchMapper;
    
    // 根据id获取
	public ApiU_match findU_matchById(Integer id){
		ApiU_match u_match = apiU_matchMapper.findU_matchById( id );
		return u_match;
	}
    
    //查看数据集
	public List<ApiU_match> findU_matchs(){
        List<ApiU_match> u_matchs = apiU_matchMapper.findU_matchs();
		return u_matchs;
    }
   
    //根据条件查看数据集
	public List<Map<String, Object>> findU_matchsByMap(HashMap condition){
        List<Map<String, Object>> u_matchs = apiU_matchMapper.findU_matchsByMap(condition);
		return u_matchs;
    }
    
	// 添加
	public int insertU_match(ApiU_match u_match){
		int ret_I= apiU_matchMapper.insertU_match(u_match);
		return ret_I;
	}

	// 修改
	public int updateU_match(ApiU_match u_match){
		int ret_I= apiU_matchMapper.updateU_match(u_match);
		return ret_I;
	}
	
    // 删除
	public int deleteU_match(Integer id){
		int ret_I= apiU_matchMapper.deleteU_match( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


